/**
 * Copyright (C) 2007 The AsyncMail Group <asyncmail@googlegroups.com>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *         http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.googlecode.asyncmail.smtpserver;

/**
 * Provides a number of server-wide constant values to the SMTPHandlers
 * 
 */
public interface SMTPHandlerConfigurationData {

    /**
     * Returns the service wide hello name
     * 
     * @return the hello name
     */
    String getHelloName();

    /**
     * Returns whether relaying is allowed for the IP address passed.
     * 
     * @param remoteIP
     *                the remote IP address in String form
     * @return whether relaying is allowed
     */
    boolean isRelayingAllowed(String remoteIP);

    /**
     * @return the default domain to be used for addresses with no domain
     */
    String getDefaultDomain();

    /**
     * Returns the MailServer interface for this service.
     * 
     * @return the MailServer interface for this service
     * 
     * MailServer getMailServer();
     */

    /**
     * Returns the UsersRepository for this service.
     * 
     * @return the local users repository
     * 
     * UsersRepository getUsersRepository();
     */

    /**
     * Return wheter the mailserver will accept addresses without brackets
     * enclosed.
     * 
     * @return true or false
     */
    boolean useAddressBracketsEnforcement();

}
